package com.jmp.base;

import com.jmp.base.dto.ImChatPageRequest;
import com.jmp.base.dto.ImChatPageResponse;
import com.jmp.base.dto.ImRequest;
import com.jmp.base.dto.ImSendRequest;
import one.stand.model.ResultModel;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

public interface ImApi {
    @PostMapping("im/send")
    ResultModel imSend(@RequestBody ImSendRequest request);

    @PostMapping("im/chat")
    ResultModel imChat(@RequestBody ImRequest request);

    /**
     * 获取聊天列表，分页
     */
    @PostMapping("im/chat/page")
    ResultModel<ImChatPageResponse> chatPage(@RequestBody ImChatPageRequest request);

    @PostMapping("im/chat/content")
    ResultModel imChatContent(@RequestBody ImRequest request);
}
